package com.example.demo;

import lombok.Data;

import java.util.List;

/**
 * @author gxing
 * @desc 获取深大公众号调160的响应
 * @date 2023/9/4
 */
public class WxOpenid160Response {

    private static String SUCCESS_CODE = "81000000";
    private static String SUCCESS_MSG = "SUCCESS";

    private String result;
    private String msg;
    private List<WxOpenid160Result> data;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<WxOpenid160Result> getData() {
        return data;
    }

    public void setData(List<WxOpenid160Result> data) {
        this.data = data;
    }

    public boolean success() {
        return result.equals(SUCCESS_CODE);
    }

}